package com.sxj.PDMS.mapper;

import com.sxj.PDMS.model.entity.StudentUploadData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
* @author 503c'j
* @description 针对表【student_upload_data】的数据库操作Mapper
* @createDate 2024-06-17 08:38:04
* @Entity com.sxj.PDMS.model.entity.StudentUploadData
*/
public interface StudentUploadDataMapper extends BaseMapper<StudentUploadData> {
    /**
     * 查询所有数据,分页展示
     *
     * @param start
     * @param pageSize
     * @return
     */
    @Select("select * from student_upload_data limit #{start},#{pageSize}")
    List<StudentUploadData> selectAll(@Param("start") Integer start,
                                      @Param("pageSize") Integer pageSize);
    @Select("select count(*) from student_upload_data")
    Long selectTotal();

    List<StudentUploadData> selectByStudentNumber(@Param("start") Integer start,
                                                  @Param("pageSize") Integer pageSize,
                                                  @Param("time") Date time,
                                                  @Param("studentNumber") String studentNumber);

    Long selectTotalByStudentNumber(@Param("time") Date time,
                                    @Param("studentNumber") String studentNumber);
}




